package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysIncomeMonthMapper;
import com.ruoyi.system.domain.SysIncomeMonth;
import com.ruoyi.system.service.ISysIncomeMonthService;

/**
 * 月收益Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-10-30
 */
@Service
public class SysIncomeMonthServiceImpl implements ISysIncomeMonthService 
{
    @Autowired
    private SysIncomeMonthMapper sysIncomeMonthMapper;

    /**
     * 查询月收益
     * 
     * @param incomeId 月收益主键
     * @return 月收益
     */
    @Override
    public SysIncomeMonth selectSysIncomeMonthByIncomeId(Long incomeId)
    {
        return sysIncomeMonthMapper.selectSysIncomeMonthByIncomeId(incomeId);
    }

    /**
     * 查询月收益列表
     * 
     * @param sysIncomeMonth 月收益
     * @return 月收益
     */
    @Override
    public List<SysIncomeMonth> selectSysIncomeMonthList(SysIncomeMonth sysIncomeMonth)
    {
        return sysIncomeMonthMapper.selectSysIncomeMonthList(sysIncomeMonth);
    }

    /**
     * 新增月收益
     * 
     * @param sysIncomeMonth 月收益
     * @return 结果
     */
    @Override
    public int insertSysIncomeMonth(SysIncomeMonth sysIncomeMonth)
    {
        return sysIncomeMonthMapper.insertSysIncomeMonth(sysIncomeMonth);
    }

    /**
     * 修改月收益
     * 
     * @param sysIncomeMonth 月收益
     * @return 结果
     */
    @Override
    public int updateSysIncomeMonth(SysIncomeMonth sysIncomeMonth)
    {
        return sysIncomeMonthMapper.updateSysIncomeMonth(sysIncomeMonth);
    }

    /**
     * 批量删除月收益
     * 
     * @param incomeIds 需要删除的月收益主键
     * @return 结果
     */
    @Override
    public int deleteSysIncomeMonthByIncomeIds(Long[] incomeIds)
    {
        return sysIncomeMonthMapper.deleteSysIncomeMonthByIncomeIds(incomeIds);
    }

    /**
     * 删除月收益信息
     * 
     * @param incomeId 月收益主键
     * @return 结果
     */
    @Override
    public int deleteSysIncomeMonthByIncomeId(Long incomeId)
    {
        return sysIncomeMonthMapper.deleteSysIncomeMonthByIncomeId(incomeId);
    }
}
